function showProgressView(i_wfId, i_baseTaskId, taskId, activityId,id, viewTimeLineUrl, viewFlowchatUrl, viewFormUrl) {
    var tab0 = null
    var tab1 = null
    var tab2 = null

    if (viewFormUrl) {
        tab0 = {
            title: '审批表单',
            content: '<iframe id="viewForm" src="' + viewFormUrl + '"\n' +
                '        style="width: 100%; height: 100%; border:0;"\n' +
                '        wfId="' + i_wfId + '" baseTaskId="' + i_baseTaskId + '" taskId="'+ taskId +'" activityId="'+activityId+'" taskkeyId="'+i_baseTaskId+'" wfTaskId="'+id+'"></iframe>'
        }
    }

    if (viewTimeLineUrl) {
        tab1 = {
            title: '办理概要',
            content: '<iframe id="viewTimeline" src="' + viewTimeLineUrl + '"\n' +
                '        style="width: 100%; height: 95%; border:0;"\n' +
                '        scrolling="no" wfId="' + i_wfId + '" baseTaskId="' + i_baseTaskId + '"></iframe>'
        }
    }

    if (viewFlowchatUrl) {
        tab2 = {
            title: '流程进度',
            content: '<iframe id="viewFlowchat" src="' + viewFlowchatUrl + '"\n' +
                '        style="width: 100%; height: 100%; border:0;"\n' +
                '        scrolling="no" wfId="' + i_wfId + '" baseTaskId="' + i_baseTaskId + '"></iframe>'
        }
    }

    var arrTab = []
    if (!tab1 && !tab2) {
        layer.alert("调用错误")
        return
    }

    if (tab0) arrTab.push(tab0)
    if (tab1) arrTab.push(tab1)
    if (tab2) arrTab.push(tab2)

    layer.tab({
        area: ['100%', '100%'],
        tab: arrTab,
        id: "spsp",
        success: function (layerObj, index) {

            $(".layui-layer-content").css("overflow-y", "hidden")
            // $($(layerObj[0].innerHTML)[1]).css("width", "55")
            // console.log($(layerObj[0].innerHTML)[1])

            iframeAutoFit("viewForm")
            iframeAutoFit("viewTimeline")
            iframeAutoFit("viewFlowchat")

            $(window).resize(function () {
                iframeAutoFit("viewForm")
                iframeAutoFit("viewTimeline")
                iframeAutoFit("viewFlowchat")
            });

        },
        end: function () {
            if (typeof gridList != "undefined") gridList.reload();
        }
    });

}

function iframeAutoFit(iframeId) {
    var iframe = document.getElementById(iframeId);
    if (iframe == null || iframe == "undefine" || iframe == "") return
    iframe.style.width = (window.innerWidth - 20) + 'px';
    iframe.style.height = window.innerHeight + 'px';
}